Skip to content

affeq: optimize sparse affeq join#1773

Merged
DrMichaelPetter merged 6 commits into
masterfrom
optimize_sparse_affeq_lindisjunc
Jul 8, 2025
Merged

affeq: optimize sparse affeq join#1773
DrMichaelPetter merged 6 commits into
masterfrom
optimize_sparse_affeq_lindisjunc

Conversation

@DrMichaelPetter
Copy link
Copy Markdown
Collaborator

following #1625 , we can optimize the sparse affeq join even more: During join, we have several occasions where our implementation insists on accessing vectors via nth. By cleverly rewriting the the procedure for disjunction of linear equalities, we can get rid of the harmful instances of this, hopefully making affine equalities an even more viable domain.

@DrMichaelPetter DrMichaelPetter self-assigned this Jul 1, 2025
@DrMichaelPetter DrMichaelPetter added in progress performance Analysis time, memory usage relational Relational analyses (Apron, affeq, lin2var) labels Jul 1, 2025
@DrMichaelPetter
Copy link
Copy Markdown
Collaborator Author

Next step is the evaluation, whether the changes are sound, and how much this impacts the performance, by running this on SVCOMP.

@DrMichaelPetter
Copy link
Copy Markdown
Collaborator Author

First tests look rather promising - next up is the svcomp run.
optimizedaffeq
here, the left affeq column is this PR's numbers, the right column is the master's affeq numbers

@DrMichaelPetter
Copy link
Copy Markdown
Collaborator Author

SV Comp shows no wrong verdicts, this is looking good.

Copy link
Copy Markdown
Member

@michael-schwarz michael-schwarz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I did not really investigate the algorithm, but just left some code style remarks.

Comment thread src/cdomains/affineEquality/sparseImplementation/listMatrix.ml Outdated
Comment thread src/cdomains/affineEquality/sparseImplementation/listMatrix.ml Outdated
Comment thread src/cdomains/affineEquality/sparseImplementation/listMatrix.ml Outdated
Comment thread src/cdomains/affineEquality/sparseImplementation/listMatrix.ml Outdated
Comment thread src/cdomains/affineEquality/sparseImplementation/listMatrix.ml Outdated
Comment thread src/cdomains/affineEquality/sparseImplementation/listMatrix.ml Outdated
Comment thread src/cdomains/affineEquality/sparseImplementation/listMatrix.ml Outdated
Comment thread src/cdomains/affineEquality/sparseImplementation/listMatrix.ml Outdated
Comment thread src/cdomains/affineEquality/sparseImplementation/listMatrix.ml Outdated
DrMichaelPetter and others added 3 commits July 3, 2025 13:03
One big beautiful commit

Co-authored-by: Michael Schwarz <michael.schwarz93@gmail.com>
@DrMichaelPetter DrMichaelPetter merged commit 498424f into master Jul 8, 2025
19 checks passed
@DrMichaelPetter DrMichaelPetter deleted the optimize_sparse_affeq_lindisjunc branch July 8, 2025 13:33
sim642 added a commit that referenced this pull request Jul 8, 2025
sim642 added a commit that referenced this pull request Jul 8, 2025
@sim642 sim642 added this to the v2.6.0 Awkward Aardvark milestone Sep 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

performance Analysis time, memory usage relational Relational analyses (Apron, affeq, lin2var)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants